-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add support for connected accounts #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a6a9a8a to
9947c1d
Compare
ed34983 to
1ef54db
Compare
2985181 to
67dd658
Compare
|
| - **Allowed Logout URLs**: `http://localhost:5173` | ||
| - **Allowed Web Origins**: `http://localhost:5173` | ||
| - Make sure to Allow Refresh Token in Grant Types under Advanced Settings but you can disable "Allow Refresh Token Rotation" | ||
| - Enable "Allow Refresh Token Rotation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's interesting here is that i've tested my SPA to work when it does have this setting (Allow Refresh Token Rotation) enabled, however on the Next.js chatbot example (and in that README here), we have it disabled. It's an interesting diff we should look into.
Co-authored-by: Patrick Riley <[email protected]>
2f5535f to
0affff2
Compare
Changes look ready here and happy to approve after auth0 next.js + auth0 spa SDKs have been updated to target versions. |
|
🎉 This PR is included in version @auth0/ai-v6.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version @auth0/ai-components-v4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version @auth0/ai-genkit-v6.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version @auth0/ai-langchain-v5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version @auth0/ai-llamaindex-v5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version @auth0/ai-vercel-v5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR introduces support for the connected accounts flow, enabling users to link third-party accounts (Google, Slack, GitHub) to their Auth0 user profile for seamless API access through Token Vault. The implementation includes significant documentation improvements, terminology updates, and bug fixes across multiple examples.
Key Changes:
@auth0/ai-componentspackage that covers the front-end component handling of the flow (paired with a Next.js/FastAPI backend).Technical Improvements:
TokenVaultConsentPopupandTokenVaultConsentRedirectcomponents to properly handle TokenVaultInterrupt'sauthorizationParamsfield (extra authorization parameters to be submitted to the 3rd party provider's authorization request)/auth/loginto/auth/connectfor connected accounts flowenableConnectAccountEndpointconfiguration flag when initializing thenextjs-auth0library"openid"for GoogleRESOURCE_SERVER_*→AUTH0_CUSTOM_API_*)Bug Fixes:
addDaysinstead ofaddHoursfor proper date range queriesExamples Updated:
examples/calling-apis/chatbot- All AI framework variants (AI SDK, Genkit, Langgraph, LlamaIndex)examples/calling-apis/spa-with-backend-api/react-hono-ai-sdkexamples/calling-apis/spa-with-backend-api/react-langgraph-apiTesting
Manual Testing Required:
Environment Setup Testing:
Breaking Changes
@auth0/ai-componentspackage was updated to trigger the new Connect Account flow instead of the previous flow via the/authorizeentry point. As such, application builder will need to upgrade their application to support the new flow:@auth0/nextjs-auth0library to v4.13.0enableConnectAccountEndpoint: trueoption when initializing theAuth0Clientmodule.@auth0/auth0-spa-jslibrary to v2.9.0createAuth0Client()Users will need to update their .env files when upgrading.